package com.dada.domain.common;

import lombok.Getter;

/**
 * Created by jianweilin on 16/9/5.
 */
@Getter
public enum Code {
    // 基础响应码
    SERVER_ERROR(1, "服务异常"),
    BASE_NOT_FOUND(2, "资源不存在"),
    BASE_UNAUTHORIZED(3, "未授权"),
    BASE_FORBIDDEN(4, "拒绝访问"),
    BASE_BAD_PARAMS(5, "请求参数错误");

    private int code;
    private String message;

    Code(int code, String message) {
        this.message = message;
        this.code = code;
    }
}
